package org.exercise6.flyWeight;

/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/11/16 21:40
 */
public abstract class Statement {
    public abstract String getPrefix();

    public abstract String getStatement();

    public abstract void setPrefix(String prefix);

    public void chat() {
        System.out.println(this.getPrefix() + ":" + this.getStatement());
    }

}
